package com.any.hook.core.webapi.service;

import com.any.hook.core.webapi.entity.DBInfo;
import com.any.hook.core.webapi.mapper.DbInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EtlJsonService {
    @Autowired
    private DbInfoMapper dbInfoMapper;
    public List<DBInfo> getAllName(){
        return dbInfoMapper.queryAllName();
    }
    public DBInfo getDbInfoByName(String name){
        return dbInfoMapper.queryByName(name);
    }
}
